<?php

//setting application
$_CONFIG['app']['name']                 = 'Esoftdream';
$_CONFIG['app']['email']                = 'webmaster@esoftdream.net';
//$_CONFIG['app']['base_url']             = (dirname($_SERVER['SCRIPT_NAME']) == '/') ? '' : $_SERVER['SCRIPT_NAME'];
//$_CONFIG['app']['base_path']            = (dirname($_SERVER['SCRIPT_FILENAME']) == '/') ? '' : $_SERVER['SCRIPT_FILENAME'];
$_CONFIG['app']['base_url']             = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']);
//$_CONFIG['app']['base_url']             = dirname($_SERVER['SCRIPT_NAME']);
$_CONFIG['app']['base_path']            = dirname($_SERVER['SCRIPT_FILENAME']);

//setting database
//$_CONFIG['db']['host']                  = 'localhost';
//$_CONFIG['db']['username']              = 'root';
//$_CONFIG['db']['password']              = '';
//$_CONFIG['db']['name']                  = 'globali_dbase';

$_CONFIG['db']['host']                  = 'localhost';
$_CONFIG['db']['username']              = 'root';
$_CONFIG['db']['password']              = '';
$_CONFIG['db']['name']                  = 'globalin_finite';

//setting frontend theme
$_CONFIG['theme']['frontend']['name']   = 'global';
$_CONFIG['theme']['frontend']['url']    = $_CONFIG['app']['base_url'].'/themes/'.$_CONFIG['theme']['frontend']['name'].'/views/layouts';
$_CONFIG['theme']['frontend']['path']   = $_CONFIG['app']['base_path'].'/themes/'.$_CONFIG['theme']['frontend']['name'].'/views/layouts';

//setting member theme
$_CONFIG['theme']['member']['name']     = 'voffice-default';
$_CONFIG['theme']['member']['url']      = $_CONFIG['app']['base_url'].'/themes/'.$_CONFIG['theme']['member']['name'].'/views/layouts';
$_CONFIG['theme']['member']['path']     = $_CONFIG['app']['base_path'].'/themes/'.$_CONFIG['theme']['member']['name'].'/views/layouts';

//setting backend theme
$_CONFIG['theme']['backend']['name']    = 'backend-adminica';
$_CONFIG['theme']['backend']['url']     = $_CONFIG['app']['base_url'].'/themes/'.$_CONFIG['theme']['backend']['name'].'/views/layouts';
$_CONFIG['theme']['backend']['path']    = $_CONFIG['app']['base_path'].'/themes/'.$_CONFIG['theme']['backend']['name'].'/views/layouts';

//setting bonus
$_CONFIG['bonus']['sponsor'] = 10000;
$_CONFIG['bonus']['match'] = 500;
$_CONFIG['bonus']['match'] = 50000;
$_CONFIG['bonus']['gen_match'] = 15000;
$_CONFIG['max_shipping_cost'] = 100000;


//pagination (data per page)
$_CONFIG['pagination']['products']      = 6;
$_CONFIG['pagination']['news']          = 10;
$_CONFIG['pagination']['testimony']     = 10;
$_CONFIG['pagination']['stockist']      = 10;

//file upload directory
$_CONFIG['updir']['admin']              = $_CONFIG['app']['base_path'].'/images/admin/';
$_CONFIG['updir']['bank']               = $_CONFIG['app']['base_path'].'/images/bank/';
$_CONFIG['updir']['country']            = $_CONFIG['app']['base_path'].'/images/country/';
$_CONFIG['updir']['favicon']            = $_CONFIG['app']['base_path'].'/images/favicon/';
$_CONFIG['updir']['gallery']            = $_CONFIG['app']['base_path'].'/images/gallery/';
$_CONFIG['updir']['links']              = $_CONFIG['app']['base_path'].'/images/links/';
$_CONFIG['updir']['member']             = $_CONFIG['app']['base_path'].'/images/member/';
$_CONFIG['updir']['news']               = $_CONFIG['app']['base_path'].'/images/news/';
$_CONFIG['updir']['products']           = $_CONFIG['app']['base_path'].'/images/products/';

//file directory
$_CONFIG['dir']['admin']                = $_CONFIG['app']['base_url'].'/images/admin/';
$_CONFIG['dir']['bank']                 = $_CONFIG['app']['base_url'].'/images/bank/';
$_CONFIG['dir']['country']              = $_CONFIG['app']['base_url'].'/images/country/';
$_CONFIG['dir']['favicon']              = $_CONFIG['app']['base_url'].'/images/favicon/';
$_CONFIG['dir']['gallery']              = $_CONFIG['app']['base_url'].'/images/gallery/';
$_CONFIG['dir']['links']                = $_CONFIG['app']['base_url'].'/images/links/';
$_CONFIG['dir']['member']               = $_CONFIG['app']['base_url'].'/images/member/';
$_CONFIG['dir']['news']                 = $_CONFIG['app']['base_url'].'/images/news/';
$_CONFIG['dir']['products']             = $_CONFIG['app']['base_url'].'/images/products/';

?>
